package com.sen.common.constant;

/**
 * @author Kisen
 * @email lqs0911@qq.com
 * @date 2022/11/18 11:42
 * @detail
 */
public class OrderConstant {

    public static final String USER_ORDER_TOKEN_PREFIX = "order:token:";


    public static final String HELLO_DIRECT_EXCHANGE = "hello-java-exchange";

    public static final String HELLO_DIRECT_QUEUE = "hello-java-queue";

    public static final String HELLO_DIRECT_ROUTE_KEY = "hello-java-binding";

    //定时关单交换机
    public static final String ORDER_EVENT_EXCHANGE = "order-event-exchange";

    //定时关单延时队列
    public static final String ORDER_DELAY_QUEUE = "order-delay-queue";

    //定时关单-订单释放队列
    public static final String ORDER_RELEASE_ORDER_QUEUE = "order-release-order-queue";

    //秒杀单队列
    public static final String ORDER_SECKILL_ORDER_QUEUE = "order-seckill-order-queue";

    //定时关单-下单路由key
    public static final String ORDER_CREATE_ORDER_ROUTING_KEY = "order.create.order.routing.key";

    //定时关单-订单释放路由key
    public static final String ORDER_RELEASE_ORDER_ROUTING_KEY = "order.release.order.routing.key";

    //秒杀单绑定路由key
    public static final String ORDER_SECKILL_ORDER_ROUTING_KEY = "order.seckill.order.routing.key";

    //订单释放直接和库存释放绑定路由key
    public static final String ORDER_RELEASE_OTHER_ROUTING_KEY = "order.release.other.#";
}
